/**
 * Created by Administrator on 2025/5/7.
 * */
#ifndef GLOBALPARAMETERS_ERA
#define GLOBALPARAMETERS_ERA

#include "Parameters.h"
#include <memory>



enum class AICFARNetStateEnum : unsigned int { Online = 0, 
    Notify_Initial = 1, Initial_Training = 2, Initial_Trained = 3, 
    Notify_Tat = 4, Tat_Training = 5, Tat_Trained = 6, 
    Notify_Sst = 7, St_Training = 8, Sst_Trained = 9 
};

class GlobalParameters : public Parameters {
    add_parameter(int,aiCFARNetState,0);

private:
GlobalParameters() {
}


public:
static GlobalParameters *shareInstance() {
static std::shared_ptr<GlobalParameters> pInstance(new GlobalParameters);

/** 对Ti6678，从核必须共享主核的实例 */
if (globalParametersInstance) {
return (GlobalParameters *) (globalParametersInstance);
}

return pInstance.get();
}
};
#undef add_parameter
#endif //GLOBALPARAMETERS_ERA
